package org.factory.service.impl;

import org.factory.entity.Computer;
import org.factory.entity.HuaweiComputer;

import java.util.ArrayList;
import java.util.List;

/**
 * Huawei品牌电脑专卖店电脑
 *
 * @author LiKun
 * @date 2021/8/20 8:32
 */
public class HuaweiComputerStore extends ComputerStore {
    @Override
    public int production(int number) {
        List<Computer> createComputer = new ArrayList<>(number);
        for (int i = 0; i < number; i++) {
            createComputer.add(new HuaweiComputer());
        }
        this.computers.addAll(createComputer);
        return createComputer.size();
    }
}
